<!--/**
 * Plugin Name: 论坛展示型app
 * Description: uloug.com To develop and share! Please keep the copyright information!
 * Author: 拾讯网
 * Author URI: http://www.uloug.com
 * Version: 1.0
 * Plugin URI: https://git.oschina.net/858598758/apicloud.mao10.app.demo.git
 * License: GPL2+
 */-->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<link rel="stylesheet" type="text/css" href="../../css/aui.css"/>
		<style>
			body {
				background-color: #f8f8f8;
				width: 100%;
			}
			html {
				font-family: STHeiti, 'Microsoft YaHei', Helvetica, Arial, sans-serif;
			}
			img {
				width: 100%;
				height: 100%;
			}
			.guo-tic-con {
				padding: 0 20px 20px 20px;
				width: 100%;
				overflow: hidden;
			}
			.guo-tic-con .title {
				line-height: 36px;
				padding-top: 20px;
				font-weight: bolder;
				color: #3A3A3A;
				font-size: 22px;
			}
			.guo-tic-con .userName {
				margin-top: 12px;
				position: relative;
			}
			.guo-tic-con .userName .user_logo {
				border-radius: 64px;
				width: 45px;
				height: 100%;
				float: left;
				display: block;
			}
			.guo-tic-con .userName > ul {
				float: left;
				margin: 2px 0 0 8px;
				font-size: 14px;
			}
			.guo-tic-con .userName > ul .time {
				color: #808080;
			}
			.guo-tic-con .content {
				margin-top: 90px;
				word-break: break-all;
			}
			.guo-tic-con p {
				margin-top: 20px;
				font-size: 16px;
				color: #333;
			}
		</style>
	</head>
	<body>
		<!--<div class="aui-content guo-tic-con" id="tic_content">
			<h1 class="title">杨绛先生生前曾表示：去世后不开追悼会 不受奠仪</h1>
			<div class="userName">
			<img class="user_logo" src="http://p2.pstatp.com/large/4d000371ef47c89ca2" class="avatar" alt="言情说爱">
			<ul>
			<li class="name">
			北京青年报
			</li>
			<li class="time">
			5-25 12:0
			</li>
			</ul>
			</div>
			<div class="content">
			<p>
			<img src="http://p1.pstatp.com/large/6e2000e2d6e8fe560ea" alt="杨绛先生生前曾表示：去世后不开追悼会 不受奠仪">
			</p>
			<div class="entry">
			<p>打开网站根目录的autoload.php文件，找到：</p><p>define('ROOT_PATH',dirname(__FILE__));</p><p>在这一行下方添加：</p><p>session_save_path(ROOT_PATH.'/upload/session');</p><p>然后在upload文件夹下建立一个名为&nbsp;<span style="line-height: 25.7143px;">session 的文件夹，并设置此文件夹可写。</span></p><p><span style="line-height: 25.7143px;">完成。</span></p>					</div>
			</div>
		</div>-->
	</body>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/common_do.js"></script>
	<script type="text/javascript">
		apiready = function() {
			//网络判断
			appnetwork();
		}
		//有网时打开
		function network_yes() {
			tic_con();
			var set_Header_html = function() {
				//下拉刷新被触发，自动进入加载状态，使用 api.refreshHeaderLoadDone() 手动结束加载中状态
				//下拉刷新被触发，使用 api.refreshHeaderLoadDone() 结束加载中状态
				setTimeout(function() {
					tic_con();
					api.refreshHeaderLoadDone();
				}, 3000)
			};
			api.setCustomRefreshHeaderInfo(set_Header_text, set_Header_html);
		}

		function tic_con() {
			api.showProgress({
				title : '加载中...',
				modal : false
			});
			var tic_id = api.pageParam.ticid;
			api.ajax({
				url : tic_url_id + tic_url_con + '?id=' + tic_id,
				method : 'get',
				cache : true,
				dataType : 'json',
			}, function(ret, err) {
				if (ret) {
					var oja_le = $api.dom('body');
					var tic_cen = '';
					tic_cen += '<div class="aui-content guo-tic-con" id="tic_content"><h1 class="title">' + ret.title + '</h1>'
					tic_cen += '<div class="userName">'
					tic_cen += '<img class="user_logo" src="' + ret.userAvatar + '" alt="' + ret.userName + '">'
					tic_cen += '<ul>'
					tic_cen += '<li class="name">' + ret.userName + '</li>'
					tic_cen += '<li class="time">' + ret.time + '</li>'
					tic_cen += '</ul></div>'
					tic_cen += '<div class="content">'
					tic_cen += '<p>' + ret.content + '</p>'
					tic_cen += '</div></div>'
					$api.html(oja_le, tic_cen);
					api.hideProgress();
					api.refreshHeaderLoadDone();
				} else {
					network_no();
					api.hideProgress();
				}
			});
		}
	</script>
</html>